package com.roger.myHome.importExcel;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 开票实体类映射数据库表
 */
@Data
@TableName("tb_invoice")
public class InvoiceDO implements Serializable {

    @TableField(value = "id")
    private Long id;

    /**
     * 销售合同ID
     */
    @TableField("contract_id")
    private Integer contractId;

    /**
     * 结算ID
     */
    @TableField("settlement_id")
    private Long settlementId;

    /**
     * 开票类型
     */
    @TableField("invoice_type")
    private Integer invoiceType;

    @TableField("create_user")
    private Integer createUser;

    /**
     * 取票日期
     */
    @TableField("take_invoice_date")
    private Date takeInvoiceDate;

    /**
     * 取票方式
     */
    @TableField("take_invoice_style")
    private String takeInvoiceStyle;

    @TableField("approval_result")
    private Integer approvalResult;

    /**
     * 审批结束时间
     */
    @TableField("finish_time")
    private Date finishTime;

    /**
     * 发票收件人
     */
    @TableField("receive_user")
    private String receiveUser;

    /**
     * 收件人地址
     */
    @TableField("receive_user_address")
    private String receiveUserAddress;

    /**
     * 收件人联系方式
     */
    @TableField("receive_user_info")
    private String receiveUserInfo;

    @TableField("others")
    private String others;

    /**
     * 抄送人
     */
    @TableField("email_copy_to")
    private String emailCopyTo;

    /**
     * 纸质或电子票
     */
    @TableField("invoice_property")
    private String invoiceProperty;

    /**
     * 开票资料
     */
    @TableField("invoice_info")
    private String invoiceInfo;

    /**
     * 工作流ID
     */
    @TableField("workflow_id")
    private Integer workflowId;

    /**
     * 开票备注内容
     */
    @TableField("invoice_remark")
    private String invoiceRemark;

    /**
     * 开票是否变更
     */
    @TableField("invoice_change_status")
    private Byte invoiceChangeStatus;

    /**
     * 预计回款日期
     */
    @TableField("payment_date")
    private Date paymentDate;

    /**
     * 开票编号
     */
    @TableField("invoice_no")
    private String invoiceNo;

    /**
     * 开票含税总额
     */
    @TableField("total_invoice_money_with_tax")
    private BigDecimal totalInvoiceMoneyWithTax;

    @TableField("create_time")
    private Date createTime;

    @TableField("import_time")
    private Date importTime;
}
